package com.javaclimb.music.datastructure;

public class DNode <T>{
    private DNode next; //下一个节点
    private T value;
    public DNode(T value, DNode next) {
        this.value = value;
        this.next = next;
    }

    public static void main(String[] args) {
        DNode<Integer> node05 = new DNode<Integer>(50,null);
        DNode<Integer> node04 = new DNode<Integer>(40,node05);
        DNode<Integer> node03 = new DNode<Integer>(30,node04);
        DNode<Integer> node02 = new DNode<Integer>(20,node03);
        DNode<Integer> node01 = new DNode<Integer>(10,node02);
        DNode<Integer> node00 = new DNode<Integer>(null,node01);
    }
}
